package com.hzjy.api.beans;

import com.hzjy.common.annotation.Excel;
import com.hzjy.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 友情链接对象 sys_link
 * 
 * @author hzjy
 * @date 2020-09-11
 */
public class Link extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Integer id;

    /** 友情链接 */
    @Excel(name = "友情链接")
    private String url;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String img;

    /** 标题*/
    @Excel(name = "标题")
    private String title;

    /** 描述 */
    @Excel(name = "描述")
    private String content;

    @Excel(name = "状态【0：不展示，1展示】")
    private Integer state;

    @Excel(name = "展示顺序")
    private Integer sort;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("url", getUrl())
            .append("img", getImg())
            .append("createTime", getCreateTime())
            .append("title",getTitle())
            .append("content",getContent())
            .append("state",getState())
            .append("sort",getSort())
            .toString();
    }
}
